package com.worthtech.billportal.service.imp;

import java.util.List;

import com.worthtech.billportal.bean.Permission;
import com.worthtech.billportal.dao.PermissionDAO;
import com.worthtech.billportal.service.PermissionService;

public class PermissionServiceImp implements PermissionService {

	private PermissionDAO permissionDAO;
	public List getPermissionList(int menuId) {
		return this.getPermissionDAO().getPermissionList(menuId);
	}
	public PermissionDAO getPermissionDAO() {
		return permissionDAO;
	}
	public void setPermissionDAO(PermissionDAO permissionDAO) {
		this.permissionDAO = permissionDAO;
	}
	public Permission getPermission(int id) {
		return this.getPermissionDAO().getPermission(id);
	}
	
}
